{include /common/header}
<div class="row">
	<div class="col-sm-5 col-md-3 col-lg-3">
		<div class="panel panel-default">
			<div class="panel-heading">资讯推荐</div>
			{php}
				$_ids = \Ebcms::db() -> select('attr', 'content_id', [
					'attr'=>'资讯推荐',
					'ORDER'=>[
						'id'=>'DESC'
					],
					'LIMIT'=>5
				]);

				$_contents = \Ebcms::db() -> select('content', '*', [
					'status'=>1,
					'id'=>array_unique($_ids),
					'ORDER'=>[
						'id'=>'DESC'
					]
				]);
			{/php}
			<ul class="list-group">
				{foreach $_contents as $v}
				<li class="list-group-item"><span style="color: #444;">•</span>&nbsp;<a href="{:content_url($v)}">{$v.title?:'暂无标题'}</a></li>
				{/foreach}
			</ul>
		</div>
		<div class="panel panel-default">
			<div class="panel-heading">联系我们</div>
			<div class="panel-body">
				{:block('lxwm')}
			</div>
		</div>
	</div>
	<div class="col-sm-7 col-md-9 col-lg-9">
		 <div class="panel panel-default">
			<div class="panel-heading">公司简介</div>
			<div class="panel-body">
				{:block('company')}
			</div>
		</div>
		<div class="panel panel-default">
			<div class="panel-heading">产品推荐</div>
			<div class="panel-body">
				{php}
					$_ids = \Ebcms::db() -> select('attr', 'content_id', [
						'attr'=>'产品推荐',
						'ORDER'=>[
							'id'=>'DESC'
						],
						'LIMIT'=>6
					]);

					$_contents = \Ebcms::db() -> select('content', '*', [
						'status'=>1,
						'id'=>array_unique($_ids),
						'ORDER'=>[
							'id'=>'DESC'
						]
					]);
				{/php}
				<div class="row">
					{foreach $_contents as $v}
					<div class="col-sm-4 col-md-3 col-lg-3">
						<a href="{:content_url($v)}">
							<div class="thumbnail" style="text-align: center;">
								<img src="{:real_url($v['thumb'])}" class="thumb" alt="">
								<div class="caption">
									<div>{$v.title?:'暂无标题'}</div>
								</div>
							</div>
						</a>
					</div>
					{/foreach}
				</div>
			</div>
		</div>
	</div>
</div>
{php}\mylib\Hook::listen('home_link');{/php}
{include /common/footer}